<?php
namespace App\Common\Constant;

/**
 * 选项元素
 *
 * @author ownfi
 */
class Params extends ParamsValue
{

    /**
     * 订单类型
     */
    static $ORDER_TYPE = [
        self::ORDER_TYPE_OFFER => '报价订单',
        self::ORDER_TYPE_PRICE => '定价订单',
    ];

    /**
     * 系统用户类型
     */
    static $USER_TYPE = [
        self::USER_TYPE_MERCHANT => '商家',
        self::USER_TYPE_MASTER => '师傅',
    ];

    /**
     * 对师傅的雇佣状态
     */
    static $OFFER_STATUS = [
        self::OFFER_STATUS_WAITING => '等待雇佣中',
//        self::OFFER_STATUS_APPOINTING => '商家预约雇佣',
        self::OFFER_STATUS_APPOINTING => '等待雇佣中',
        self::OFFER_STATUS_EMPLOYED => '成功雇佣',
        self::OFFER_STATUS_REFUSE => '您未被雇佣',
    ];

    /**
     * 货品类目
     */
    static $GOODS_CATEGORY = [
        self::GOODS_CATEGORY_CABINET => '柜类',
        self::GOODS_CATEGORY_BED => '床类',
        self::GOODS_CATEGORY_MATTRESS => '床垫类',
        self::GOODS_CATEGORY_DESK => '桌子类',
        self::GOODS_CATEGORY_TEAPOY => '茶几类',
        self::GOODS_CATEGORY_SHELF => '架子类',
        self::GOODS_CATEGORY_SOFA => '沙发类',
        self::GOODS_CATEGORY_SEAT => '坐具类',
        self::GOODS_CATEGORY_SCREEN => '屏风类',
        self::GOODS_CATEGORY_PLATFORM => '台案类',
        self::GOODS_CATEGORY_MIRROR => '镜子类',
        self::GOODS_CATEGORY_OFFICE => '办公家具类',
        self::GOODS_CATEGORY_OTHER => '其它类别',
    ];

    /**
     * 电梯/步梯
     */
    static $ELEVATOR = [
        self::ELEVATOR => '电梯',
        self::STAIRS => '步梯',
    ];

    /**
     * 星期
     */
    static $WEEKS = [
        self::WEEK_MONDAY=>'周一',
        self::WEEK_TUESDAY=>'周二',
        self::WEEK_WEDNESDAY=>'周三',
        self::WEEK_THURSDAY=>'周四',
        self::WEEK_FRIDAY=>'周五',
        self::WEEK_SATURDAY=>'周六',
        self::WEEK_SUNDAY=>'周日',
    ];

    /**
     * 上午/下午
     */
    static $AMPM= [
        self::AM => '上午',
        self::PM => '下午',
    ];

    /**
     * 小时
     */
    static $HOURS = [
        self::HOUR_0=>'0:00',
        self::HOUR_1=>'1:00',
        self::HOUR_2=>'2:00',
        self::HOUR_3=>'3:00',
        self::HOUR_4=>'4:00',
        self::HOUR_5=>'5:00',
        self::HOUR_6=>'6:00',
        self::HOUR_7=>'7:00',
        self::HOUR_8=>'8:00',
        self::HOUR_9=>'9:00',
        self::HOUR_10=>'10:00',
        self::HOUR_11=>'11:00',
        self::HOUR_12=>'12:00',
        self::HOUR_13=>'13:00',
        self::HOUR_14=>'14:00',
        self::HOUR_15=>'15:00',
        self::HOUR_16=>'16:00',
        self::HOUR_17=>'17:00',
        self::HOUR_18=>'18:00',
        self::HOUR_19=>'19:00',
        self::HOUR_20=>'20:00',
        self::HOUR_21=>'21:00',
        self::HOUR_22=>'22:00',
        self::HOUR_23=>'23:00',
    ];

    /**
     * 质保金订单类型
     */
    static $MASTER_FUND_TYPE = [
        self::MASTER_FUND_TYPE_PAY=>'缴纳',
        self::MASTER_FUND_TYPE_RETURN=>'退回',
    ];

    /**
     * 质保金订单状态
     */
    static $MASTER_FUND_STATUS = [
        self::MASTER_FUND_UNPAID=>'未支付',
        self::MASTER_FUND_PAID=>'已支付',
        self::MASTER_FUND_WAITING=>'待退还',
        self::MASTER_FUND_PASS=>'已退还',
        self::MASTER_FUND_REFUSE=>'拒绝退还',
    ];

    /**
     * 提现申请状态
     */
    static $MASTER_CASH = [
        self::MASTER_CASH_REVIEW=>'审核中',
        self::MASTER_CASH_PASS=>'通过',
        self::MASTER_CASH_REFUSE=>'拒绝',
    ];

    /**
     * 职业类型
     */
    static $JOB_TYPE = [
        self::FULL_TIME_JOB=>'全职',
        self::PART_TIME_JOB=>'兼职',
    ];

    /**
     * 货到后几小时内完成服务
     */
    static $SERVICE_EXTRA_FINISH_IN = [
        self::SERVICE_EXTRA_FINISH_IN_24=>24,
        self::SERVICE_EXTRA_FINISH_IN_48=>48,
    ];

    /**
     * 空跑费几元每次
     */
    static $SERVICE_EXTRA_NOTHING_FEE = [
        self::SERVICE_EXTRA_NOTHING_FEE_40=>40,
        self::SERVICE_EXTRA_NOTHING_FEE_50=>50,
        self::SERVICE_EXTRA_NOTHING_FEE_60=>60,
    ];

    /**
     * 服务后几个月内免费保修
     */
    static $SERVICE_EXTRA_REPAIR_FREE = [
        self::SERVICE_EXTRA_REPAIR_FREE_3=>3,
        self::SERVICE_EXTRA_REPAIR_FREE_6=>6,
    ];

    /**
     * 步梯在几楼及以下免费搬楼
     */
    static $SERVICE_EXTRA_FLOOR_FREE = [
        self::SERVICE_EXTRA_FLOOR_FREE_3 => 3,
        self::SERVICE_EXTRA_FLOOR_FREE_5 => 5,
        self::SERVICE_EXTRA_FLOOR_FREE_7 => 7,
    ];

    /**
     * 搬楼费几元每件25公斤以上
     */
    static $SERVICE_EXTRA_CARRY_FEE = [
        self::SERVICE_EXTRA_CARRY_FEE_10 => 10,
        self::SERVICE_EXTRA_CARRY_FEE_15 => 15,
        self::SERVICE_EXTRA_CARRY_FEE_20 => 20,
    ];

    /**
     * 二次上门服务几元起
     */
    static $SERVICE_EXTRA_AGAIN_FEE = [
        self::SERVICE_EXTRA_AGAIN_FEE_50 => 50,
        self::SERVICE_EXTRA_AGAIN_FEE_80 => 80,
    ];

    /**
     * 无物流地址提货30公里以外几元/公里加收
     */
    static $SERVICE_EXTRA_FAR_FEE = [
        self::SERVICE_EXTRA_FAR_FEE_1 => 1,
        self::SERVICE_EXTRA_FAR_FEE_3 => 3,
        self::SERVICE_EXTRA_FAR_FEE_5 => 5,
        self::SERVICE_EXTRA_FAR_FEE_7 => 7,
        self::SERVICE_EXTRA_FAR_FEE_9 => 9,
    ];

    /**
     * 提供喵师傅审核
     */
    static $SERVICE_EXTRA_TMALL_EXAMINE = [
        self::SERVICE_EXTRA_TMALL_EXAMINE_NO => '不提供',
        self::SERVICE_EXTRA_TMALL_EXAMINE_YES => '提供',
    ];

    /**
     * 提供货品仓储服务
     */
    static $SERVICE_EXTRA_STORAGE = [
        self::SERVICE_EXTRA_STORAGE_NO => '不提供',
        self::SERVICE_EXTRA_STORAGE_YES => '提供',
    ];

    /**
     * 提供免费平移服务
     */
    static $SERVICE_EXTRA_MOVE_FREE = [
        self::SERVICE_EXTRA_MOVE_FREE_NO => '不提供',
        self::SERVICE_EXTRA_MOVE_FREE_YES => '提供',
    ];

    /**
     * 用户状态
     */
    static $USER_STATUS = [
        self::USER_STATUS_NORMAL=>'用户正常',
        self::USER_STATUS_STOP=>'用户停单中',
        self::USER_STATUS_REVIEW=>'用户审核中',
        self::USER_STATUS_REFUSE=>'用户审核未通过',
    ];

    /**
     * 服务类目
     */
    static $SERVICE_CATEGORY = [
        self::SERVICE_CATEGORY_FURNITURE=>'家具类',
    ];

    /*
     * 商家端服务类型
     */
    static $MERCHANT_SERVICE_TYPE = [
        self::MERCHANT_SERVICE_TYPE_DELIVERY_INSTALL=>'提货配送上门+安装',
        self::MERCHANT_SERVICE_TYPE_INSTALL=>'上门安装',
        self::MERCHANT_SERVICE_TYPE_REPAIR=>'上门维修',
        self::MERCHANT_SERVICE_TYPE_DELIVERY=>'提货配送上门',
        self::MERCHANT_SERVICE_TYPE_PACK_RETURN=>'打包返货',
    ];

    /**
     * 师傅端服务类型
     */
    static $SERVICE_TYPE = [
        self::SERVICE_TYPE_DELIVERY=>'配送',
        self::SERVICE_TYPE_CARRY=>'搬运',
        self::SERVICE_TYPE_INSTALL=>'安装',
        self::SERVICE_TYPE_REPAIR=>'维修',
    ];

    /**
     * 配送类服务
     */
    static $SERVICE_TYPE_DELIVERY = [
        self::SERVICE_TYPE_DELIVERY_HOME=>'配送到家',
        self::SERVICE_TYPE_DELIVERY_STOCK=>'仓储服务',
    ];

    /**
     * 搬运类服务
     */
    static $SERVICE_TYPE_CARRY = [
        self::SERVICE_TYPE_CARRY_MAN=>'搬楼搬运',
        self::SERVICE_TYPE_CARRY_MACHINE=>'吊装上楼',
    ];

    /**
     * 安装类服务
     */
    static $SERVICE_TYPE_INSTALL = [
        self::SERVICE_TYPE_INSTALL_CABINET=>'柜类',
        self::SERVICE_TYPE_INSTALL_BED=>'床类',
        self::SERVICE_TYPE_INSTALL_DESK=>'桌类',
        self::SERVICE_TYPE_INSTALL_TEAPOY=>'茶几类',
        self::SERVICE_TYPE_INSTALL_SHELF=>'架类',
        self::SERVICE_TYPE_INSTALL_SOFA=>'沙发类',
        self::SERVICE_TYPE_INSTALL_SCREEN=>'屏风隔断',
        self::SERVICE_TYPE_INSTALL_OFFICE=>'办公类',
    ];

    /**
     * 维修类服务
     */
    static $SERVICE_TYPE_REPAIR = [
        self::SERVICE_TYPE_REPAIR_PANEL=>'板式家具维修',
        self::SERVICE_TYPE_REPAIR_WOOD=>'实木家具维修',
        self::SERVICE_TYPE_REPAIR_OFFICE=>'办公家具维修',
        self::SERVICE_TYPE_REPAIR_MARBLE=>'大理石维修',
        self::SERVICE_TYPE_REPAIR_LEATHER=>'皮革修复',
        self::SERVICE_TYPE_REPAIR_SOFA_LEATHER=>'沙发换皮修复',
        self::SERVICE_TYPE_REPAIR_SCRATCH_REPAIR=>'刮痕补漆修复',
        self::SERVICE_TYPE_REPAIR_SPLIT_JOINT=>'断裂拼接修复',
        self::SERVICE_TYPE_REPAIR_BEAUTIFUL=>'家具美容',
    ];

    /*
     * 订单在商家端状态
     */
    static $ORDER_MERCHANT_STATUS = [
        self::ORDER_MERCHANT_STATUS_WAITING => '待报价',
        self::ORDER_MERCHANT_STATUS_OFFERING => '报价中',
        self::ORDER_MERCHANT_STATUS_APPOINTING => '已挑选师傅',
        self::ORDER_MERCHANT_STATUS_PAID => '已支付预付款',
        self::ORDER_MERCHANT_STATUS_SERVING => '师傅服务中',
        self::ORDER_MERCHANT_STATUS_FINISHED => '师傅完成服务',
        self::ORDER_MERCHANT_STATUS_SUCCESS => '验收交易成功',
    ];

    /*
     * 订单在师傅端状态
     */
    static $ORDER_MASTER_STATUS = [
        self::ORDER_MASTER_STATUS_WAITING => '未开始服务',
        self::ORDER_MASTER_STATUS_SERVING => '开始服务',
        self::ORDER_MASTER_STATUS_APPOINTED => '已预约客户',
        self::ORDER_MASTER_STATUS_LOGISTICS_OK => '物流提货正常',
        self::ORDER_MASTER_STATUS_LOGISTICS_FAILED => '物流提货异常',
        self::ORDER_MASTER_STATUS_FINISHED => '完成服务',
        self::ORDER_MASTER_STATUS_SUCCESS => '收款到账',
    ];

    /**
     * 订单异常状态
     */
    static $ORDER_EXCEPT_STATUS = [
        self::ORDER_EXCEPT_NORMAL => '订单正常',
        self::ORDER_EXCEPT_CANCELED => '订单已取消',
        self::ORDER_EXCEPT_REFUNDED => '订单已退款',
        self::ORDER_EXCEPT_ARBITRATED => '订单已仲裁退款',
    ];

    /**
     * 订单退款类型
     */
    static $ORDER_REFUND_TYPE = [
        self::ORDER_REFUND_FULL => '全额退款',
        self::ORDER_REFUND_PART => '部分退款',
    ];

    /**
     * 订单退款状态
     */
    static $ORDER_REFUND_STATUS = [
        self::ORDER_REFUND_NORMAL => '无退款申请',
        self::ORDER_REFUND_REFUNDING => '申请退款中',
        self::ORDER_REFUND_REFUSE => '拒绝退款',
        self::ORDER_REFUND_RETURN_FULL => '已全额退款',
        self::ORDER_REFUND_RETURN_PART => '已部分退款',
    ];

    /**
     * 订单退款结果
     */
    static $ORDER_REFUND_RESULT = [
        self::ORDER_REFUND_RESULT_AGREE => '同意退款',
        self::ORDER_REFUND_RESULT_DISAGREE => '不同意退款',
    ];

    /**
     * 订单仲裁状态
     */
    static $ORDER_ARBITRATE_STATUS = [
        self::ORDER_ARBITRATE_NORMAL => '无仲裁申请',
        self::ORDER_ARBITRATE_ARBITRATING => '申请仲裁中',
        self::ORDER_ARBITRATE_REFUSE => '仲裁取消退款',
        self::ORDER_ARBITRATE_RETURN_FULL => '仲裁全额退款',
        self::ORDER_ARBITRATE_RETURN_PART => '仲裁部分退款',
    ];

    /**
     * 订单仲裁结果
     */
    static $ORDER_ARBITRATE_RESULT = [
        self::ORDER_ARBITRATE_RESULT_AGREE_FULL => '全额退款',
        self::ORDER_ARBITRATE_RESULT_AGREE_PART => '部分退款',
        self::ORDER_ARBITRATE_RESULT_DISAGREE => '不同意退款',
    ];

    /**
     * 订单评价状态
     */
    static $ORDER_EVALUATE_STATUS = [
        self::ORDER_EVALUATE_NOTYET => '未评价师傅',
        self::ORDER_EVALUATE_ALREADY => '已评价师傅',
    ];

    /**
     * 订单评价类型
     */
    static $ORDER_EVALUATE_TYPE = [
        self::ORDER_EVALUATE_MAKE => '人为评价',
        self::ORDER_EVALUATE_AUTO => '自动评价',
    ];

    /**
     * 订单服务评价
     */
    static $ORDER_EVALUATE_SCORE = [
        self::ORDER_EVALUATE_HIGH => '好评',
        self::ORDER_EVALUATE_MEDIUM => '中评',
        self::ORDER_EVALUATE_LOW => '差评',
    ];

    /**
     * 订单服务小图标
     */
    static $ORDER_EVALUATE_SCORE_ICO = [
        self::ORDER_EVALUATE_HIGH => 'images/4159.png',
        self::ORDER_EVALUATE_MEDIUM => 'images/33.png',
        self::ORDER_EVALUATE_LOW => 'images/250.png',
    ];

    /**
     * 交易流水收入支出方向
     * @var array
     */
    static $TRADE_DIRECTION = [
        self::TRADE_DIRECTION_IN => '收入',
        self::TRADE_DIRECTION_OUT => '支出',
    ];

    /**
     * 交易流水支付来源
     */
    static $TRADE_SOURCE = [
        self::TRADE_SOURCE_BALANCE => '余额支付',
        self::TRADE_SOURCE_ONLINE => '在线支付',
        self::TRADE_SOURCE_WEIXIN => '微信支付',
        self::TRADE_SOURCE_ALIPAY => '支付宝',
        self::TRADE_SOURCE_UNIONPAY => '银联支付',
        self::TRADE_SOURCE_SYSTEM => '系统转账',
    ];

    /**
     * 交易类型
     */
    static $TRADE_TYPE = [
        self::TRADE_TYPE_ASSURE=>'缴纳质保金',
        self::TRADE_TYPE_ORDER=>'订单完成收款入账',
        self::TRADE_TYPE_CASH=>'提现',
        self::TRADE_TYPE_REFUND=>'商家要求退款',
        self::TRADE_TYPE_PUNISH=>'罚款',
        self::TRADE_TYPE_RETURN_ASSURE=>'退还质保金',
    ];

    /**
     * 交易状态
     */
    static $TRADE_STATUS = [
        self::TRADE_STATUS_SUCCESS => '成功',
        self::TRADE_STATUS_FAIL => '失败',
        self::TRADE_STATUS_ERROR => '异常',
        self::TRADE_STATUS_WAITING => '进行中未完成',
    ];

    /**
     * 一般订单状态
     */
    static $ORDER_STATUS = [
        self::ORDER_STATUS_UNPAID => '未支付',
        self::ORDER_STATUS_PAID => '已支付',
    ];

    /**
     * 支付方式
     */
    static $PAY_METHOD = [
        self::PAY_METHOD_WEIXIN => '微信支付',
        self::PAY_METHOD_ALIPAY => '支付宝',
        self::PAY_METHOD_UNIONPAY => '银联支付',
        self::PAY_METHOD_BALANCE => '余额支付',
    ];

    /**
     * 投诉类别
     */
    static $COMPAIN_CATEGORY = [
        self::COMPLAIN_CATEGORY_OFFLINE => '师傅引导用户线下交易',
        self::COMPLAIN_CATEGORY_REFUSE => '师傅被雇佣后（托管费用后）拒绝服务',
        self::COMPLAIN_CATEGORY_NOTFOLLOW_DOORTIME => '师傅没有按预约时间上门服务',
        self::COMPLAIN_CATEGORY_RAISE_PRICE => '师傅服务中途恶意加价',
        self::COMPLAIN_CATEGORY_WANT_TIP => '师傅向客户收取额外费用',
        self::COMPLAIN_CATEGORY_NOTIN_48 => '师傅未在48小时内完成服务',
        self::COMPLAIN_CATEGORY_LEAK_PRICE => '师傅向客户泄露服务费用',
        self::COMPLAIN_CATEGORY_FORCE_CONFIRM => '师傅服务未完成，向客户索取服务确认码',
        self::COMPLAIN_CATEGORY_NOTFOLLOW_EXTRA => '师傅不遵守自己填写的附加服务',
        self::COMPLAIN_CATEGORY_PRAISE_PHOTO => '师傅上传虚假完工照',
    ];

    /**
     * 投诉子类别
     */
    static $COMPLAIN_SUBCATEGORY = [
        self::COMPLAIN_SUBCATEGORY_NOTIN_2 => '师傅没有在雇佣付款后两小时内及时预约客户',
        self::COMPLAIN_SUBCATEGORY_EXCEED_48 => '师傅超过48小时联系不上',
        self::COMPLAIN_SUBCATEGORY_BADLY => '师傅服务态度恶劣（如威胁）',
        self::COMPLAIN_SUBCATEGORY_NOT_CHECKUP => '师傅物流提货时未仔细检查',
        self::COMPLAIN_SUBCATEGORY_NOT_FEEDBACK => '师傅在安装或拆包装发现破损未及时反映',
        self::COMPLAIN_SUBCATEGORY_WANT_HELP => '师傅在服务中让客户帮忙',
        self::COMPLAIN_SUBCATEGORY_LOSS => '师傅安装过程中造成货物损失',
        self::COMPLAIN_SUBCATEGORY_BAD_SERVICE => '师傅服务问题导致客户差评',
        self::COMPLAIN_SUBCATEGORY_SLANDE => '师傅向客户诋毁家具质量',
        self::COMPLAIN_SUBCATEGORY_NOT_SIGNFOR => '师傅服务完成后，没有让客户填写服务签收单',
        self::COMPLAIN_SUBCATEGORY_LACK_PROGRESS => '师傅未及时更新订单服务进度',
        self::COMPLAIN_SUBCATEGORY_LACK_TMALL => '需要喵师傅核销订单，师傅未进行核销',
    ];

    /**
     * 投诉处理状态
     */
    static $COMPLAIN_STATUS = [
        self::COMPLAIN_STATUS_WAITING => '等待核实处理',
        self::COMPLAIN_STATUS_CANCEL => '已撤回投诉',
        self::COMPLAIN_STATUS_OK => '已核实处理',
        self::COMPLAIN_STATUS_FAIL => '投诉失败',
    ];

    /**
     * 投诉处理结果
     */
    static $COMPLAIN_RESULT = [
        self::COMPLAIN_RESULT_AGREE => '投诉核实成立',
        self::COMPLAIN_RESULT_DISAGREE => '投诉核实不成立',
    ];

    /**
     * 到货状态
     */
    static $LOGISTICS_STATUS = [
        self::LOGISTICS_STATUS_YES => '未到货',
        self::LOGISTICS_STATUS_NO => '已到货',
    ];

}